<?php
/**
 * Created by PhpStorm.
 * User: yangt
 * Date: 2020/3/8
 * Time: 18:13
 */

namespace app\mall\controller\connect;

use app\mall\model\MallGoods;

class Keyword {

	public function index()
	{
		$list = MallGoods::where('status', 1)->field('id,title,description,create_time')->all();
		foreach($list as &$item) {
			$item['url'] = url('mall/index/detail', ['id' => $item['id']]);
			$item['sort']=10;
		}

		return $list;
	}
}